package com.xxx.greneric;

import com.xxx.Map.Student;

import java.util.Comparator;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/21  13:45
 * @Copyright
 */
public class ComparatorImpl implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        return o1.getAge() - o2.getAge();
    }
}
